package iterator;

import java.util.ArrayList;
import java.util.List;

public class FirefoxMenu implements Menu {
    List<MenuItem> menuItems;

    public FirefoxMenu() {
        this.menuItems = new ArrayList<>();
    }

    public void addItem(String name, String icon) {
        menuItems.add(new MenuItem(name, icon));
    }

    @Override
    public Iterator createIterator() {
        return new FirefoxMenuIterator(this.menuItems);
    }
}
